package com.qf.controller;

import com.qf.pojo.BaseResult;
import com.qf.serevice.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/orderDetail")
public class OrderDetailController {

    @Autowired
    OrderDetailService orderDetailService;
    @RequestMapping("/findByOid/{oid}")
    public BaseResult findByOid (@PathVariable("oid")String oid){
        BaseResult byOid = orderDetailService.findByOid(oid);
        return byOid;
    }
}
